/*
 * Copyright (C) 2009 Rob Cash
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * SubscriptionImpl.java
 * 
 * Created on Jan 4, 2009 at 10:19:39 PM
 */

package org.robcash.apps.messagepopup.vo.impl;

import org.robcash.apps.messagepopup.vo.MessageStore;
import org.robcash.apps.messagepopup.vo.Schedule;
import org.robcash.apps.messagepopup.vo.Subscription;

/**
 * Standard implementation of subscription
 * @author Rob
 */
public class SubscriptionImpl implements Subscription {

    /**
     * Name
     */
    private String name;

    /**
     * Schedule
     */
    private Schedule schedule;

    /**
     * Message store
     */
    private MessageStore messageStore;

    /**
     * Get the name of subscription
     * @return Subscription name
     */
    public String getName() {
        return name;
    }

    /**
     * Set the name of subscription
     * @param name Subscription name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Get the schedule for this subscription
     * @return Schedule
     */
    public Schedule getSchedule() {
        return schedule;
    }

    /**
     * Set the schedule
     * @param schedule Message schedule
     */
    public void setSchedule(Schedule schedule) {
        this.schedule = schedule;
    }

    /**
     * Get the message store from which messages are retrieved
     * @return Message store
     */
    public MessageStore getMessageStore() {
        return messageStore;
    }

    /**
     * Set the message store from which messages are retrieved
     * @param store Message store
     */
    public void setMessageStore(MessageStore store) {
        this.messageStore = store;
    }

}
